package cn.heyige.backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户占卜设置实体
 * 存储用户的个性化占卜偏好设置
 */
@Data
@TableName("divination_setting")
public class DivinationSettingDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("apply_feedback")
    private Boolean applyFeedback = true;

    // AI人格切换 1:理性派, 2:毒舌派, 3:鸡汤派
    @TableField("preferred_ai_factor")
    private Integer preferredAiFactor;

    // AI模型偏好
    @TableField("preferred_ai_provider")
    private String preferredAiProvider;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}